<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1 id='hid' class='hcls' info='linux is very much'>aaaaaaaaaaaaaa</h1>
</body>
<script type="text/javascript">
hidobj=document.getElementById('hid');

	function getA(obj,attr){
		return obj.getAttribute(attr);
	}


	alert(getA(hidobj,'class'));


	function setA(obj,attr,value){
		obj.setAttribute(attr,value);
	}


	setA(hidobj,'info','php is very much');
</script>
</html>